#include <iostream>
using namespace std;
int main ()
{
    char l1;
    string palabra;

    cout<<"Ingrese una palabra"<<endl<<endl;
    cin>>palabra;

    palabra[0]=l1;

    palabra[0]=palabra.length()-1;
    palabra.length()-1=l1;
    cout<<palabra;
    return 1;
}
